import { UserOutlined, MedicineBoxOutlined, FileSearchOutlined, TeamOutlined, SolutionOutlined } from '@ant-design/icons';
import type { MenuDataItem } from '@ant-design/pro-layout';

const asideMenuConfig: MenuDataItem[] = [
  {
    name: '患者信息',
    path: '/patients',
    icon: <TeamOutlined />,
    meta: {
      auth: ''
    }
  },
  {
    name: '病历管理',
    path: '/medicalHistory',
    icon: <SolutionOutlined />,
    meta: {
      auth: '护师,医生,助理'
    },
    children: [
      {
        name: '门诊管理',
        path: '/medicalHistory/mzgl',
      },
      {
        name: '住院管理',
        path: '/medicalHistory/zygl',
      },
    ],
  },
  {
    name: '体检管理',
    path: '/exam',
    icon: <FileSearchOutlined />,
    meta: {
      auth: '医生,护师,助理'
    },
    children: [
      {
        name: '入监体检',
        path: '/exam/entry',
      },
      {
        name: '年度体检',
        path: '/exam/annual',
      },
    ],
  },
  {
    name: '药库管理',
    path: '/medicine',
    icon: <MedicineBoxOutlined />,
    meta: {
      auth: '医生,护师,入库员,出库员'
    },
  },
  {
    name: '用户管理',
    path: '/userManagement',
    icon: <UserOutlined />,
    meta: {
      auth: 'admin'
    }
  }
];

export { asideMenuConfig };
